﻿using SportsPlatform.BaseModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Model.SportBusiness
{

    /// <summary>
    /// 赛事单位表实体
    /// </summary>
    [Table("T_B_CompetitionUnit")]
    public class CompetitionUnit : BaseModel
    {
        /// <summary>
        /// 单位名称
        /// </summary>
        [Required]
        [MaxLength(200)]
        public string Name { get; set; }

        /// <summary>
        /// 单位LOGO
        /// </summary>
        [Required]
        [MaxLength(200)]
        public string LogoUrl { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [MaxLength(20)]
        public string Responsible { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [MaxLength(20)]
        public string TelePohone { get; set; }

        /// <summary>
        /// 单位类型（1：举办单位；2：承办单位；3：协办单位）
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 所属赛事
        /// </summary>
        public Guid CompetitionId { get; set; }
    }
}
